package com.ganmiao.server.supplier.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ganmiao.entity.BaseColumns;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 供应商关联用户
 *
 * @TableName supplier_user
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("供应商关联用户")
@TableName(value = "supplier_user")
public class SupplierUser extends BaseColumns implements Serializable {

    /**
     * 供应商用户主键ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("供应商用户主键ID")
    private Integer supplierUserId;

    /**
     * 供应商ID
     */
    @ApiModelProperty("供应商ID")
    private Integer supplierId;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    private Integer userId;

    /**
     * 状态(1:正常 9:删除)
     */
    @ApiModelProperty("状态(1:正常 9:删除)")
    private String status;
}